package com.gl.config;

import com.gl.utils.ScanResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

/**
 * <p>Description:继承springboot提供的应用启动后执行程序，此时应用启动完成</p>
 *
 * @author gaol
 * @version 1.0
 * @date 2017/5/16
 */
public class ResourceLoadding implements CommandLineRunner {

    @Autowired
    private ScanResource scanResource;

    @Override
    public void run(String... strings) throws Exception {
        scanResource.createResource();
    }
}
